home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15271 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  36 lines

  1. Path: news.nstn.ca!news
  2. From: dave@highlander.cbnet.ns.ca (Dave Nugent)
  3. Newsgroups: comp.lang.c
  4. Subject: How do I make a .QLB from a .LIB?
  5. Date: 18 Apr 1996 02:23:39 GMT
  6. Organization: NSTN Windows User
  7. Message-ID: <4l493b$6j3@news.nstn.ca>
  8. NNTP-Posting-Host: dialup15.cbnet.ns.ca
  9. X-Newsreader: WinVN version 0.82
  10.  
  11.  
  12. How can I make a Quick Basic Library (QLB) From a LIB I create
  13. in Borlands C?  Here's What I tried...
  14.  
  15. file "test.c"
  16. -----------------------------------------
  17. #include<stdio.h>
  18. print_it( ) { printf("test"); }
  19. -----------------------------------------
  20. I compile this file to an obj (test.obj) and then use tlib to make it into a library
  21. file(test.lib).  This works fine.
  22.  
  23. Then I am trying to use the DOS (Older) LINK Command to change it.
  24. LINK test.lib/Q/SE:1024,test.QLB,NUL,BQLB45.
  25.  
  26. This gives me an error of:
  27. unresolved external _printf
  28.  
  29. Why is this?  Why would the linker think the printf is external when it
  30. should have been included in the original test.obj file created when me.c
  31. was compiled. 
  32.  
  33. Appreciate any help or suggestions..
  34. Thanks..
  35.  
  36.